//
//  ModuleFirst_TravelsDetailsNodeModel.m
//  艾听歌
//
//  Created by dllo on 16/5/28.
//  Copyright © 2016年 dllo. All rights reserved.
//
#import "ModuleFirst_TravelsDetailsNodeModel.h"

@implementation ModuleFirst_TravelsDetailsNodeModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    if ([key isEqualToString:@"id"]) {
        
        self.idd = value;
    
    }
    
    if ([key isEqualToString:@"description"]) {
        
        self.descriptions = value;
    }
    
    
}


//重写setter方法
- (void)setPhoto:(NSDictionary *)photo{
    
    _photo = photo;
    
    self.photoId = [_photo objectForKey:@"id"];
    self.image_width = [_photo objectForKey:@"image_width"];
    self.image_height = [_photo objectForKey:@"image_height"];
    self.photoUrl = [_photo objectForKey:@"url"];
    
}

- (void)setVideo:(NSDictionary *)video{
    
    _video = video;
    
    self.videoId = [_video objectForKey:@"id"];
    self.video_width = [_video objectForKey:@"video_width"];
    self.video_height = [_video objectForKey:@"video_height"];
    self.videoUrl = [_video objectForKey:@"url"];
    
}



@end
